package com.backend.server.license;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * License 生成类需要的参数
 */
@Data
@ApiModel(value = "License 生成类需要的参数")
public class LicenseCreatorParamRequest {

    /**
     * 证书名(证书描述信息)
     */
    @ApiModelProperty(value = "证书名(证书描述信息)", required = true)
    private String licenseName;

    /**
     * 证书生效时长(单位：天)
     */
    @ApiModelProperty(value = "证书生效时长(单位：天)", required = true)
    private Integer validityDays;

    /**
     * 所属项目(项目序号)
     */
    @ApiModelProperty(value = "所属项目(项目序号)", required = true)
    private Long projectId;

    /**
     * 申请人
     */
    @ApiModelProperty(value = "申请人", required = true)
    private String applicantName;

    /**
     * 额外的服务器硬件校验信息
     */
    @ApiModelProperty(value = "额外的服务器硬件校验信息", required = true)
    private LicenseCheckModel licenseCheckModel;

    @Override
    public String toString() {
        return "LicenseCreatorParamDTO{" +
                "validityDays=" + validityDays +
                ", description='" + licenseName + '\'' +
                ", licenseCheckModel=" + licenseCheckModel +
                '}';
    }
}
